package com.yuye.java.redis.properties;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 哨兵配置
 * @author gzs
 * @version 3.0.0
 */
@Data
@ToString
public class RedisSentinelProperties implements Serializable {

    /**
     * 哨兵master 名称
     */
    private String master;

    /**
     * 哨兵节点
     */
    private String nodes;

    /**
     * 哨兵配置
     */
    private boolean masterOnlyWrite;

    /**
     *哨兵最大识别次数
     */
    private int failMax;

    private static final long serialVersionUID = -6897255393469124238L;
}
